package com.authine.cloudpivot.ext.enums.system;

/**
 * @author fj
 * @date 2021/10/15
 */
public enum RowTypeEnum {
    /**
     * 数据查看范围枚举
     */
    ONLY_ONESELF("1", "仅自己可见"),
    DEPARTMENT("2", "部门内可见"),
    ORGANIZATION("3", "组织内可见"),
    PARENT_ORGANIZATION("4", "父组织可见"),
    PM_MANAGER("5", "全部可见"),
    ROLE("6", "角色可见"),
    SCOPE("7", "用户绑定组织可见");

    private String code;
    private String des;

    RowTypeEnum(String code, String des) {
        this.code = code;
        this.des = des;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    @Override
    public String toString() {
        return "RowTypeEnum{" +
                "code='" + code + '\'' +
                ", des='" + des + '\'' +
                '}';
    }
}
